package com.kingsoft.dc.khaos.module.spark.metadata.preprocess.transform

/**
  *
  * create by goosoog 2019/7/25.
  *
  */
case class SampleInfo(sample_rate: String = "",
                      extract_fields: List[FieldInfo] = Nil,
                      advanced_options: SampleAdvancedInfo = null)

case class FieldInfo(field: String = "",
                     data_type: String = "",
                     length: Option[String])

case class SampleAdvancedInfo(partition: SamplePartitionOption = null,
                              cache_option: SampleCacheOption = null)

case class SamplePartitionOption(on_off: Boolean,
                           nums: String = "")

case class SampleCacheOption(on_off: Boolean,
                       option: String = "")